#include "ElementFactory.h"
#include "Module.h"
#include "Path.h"

Element *ElementFactory::createElement(int type, std::string &name)
{
	Element *element;

	switch(type)
	{
		case MODULE:
			element = new Module(name);
			break;
		case PATH:
			element = new Path(name);
			break;
		default:
			break;
	}

	return element;
}